package com.joplus.housekeeper.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by zisheng on 2017/8/17.
 */

public class ExchangeList {

    /**
     * code : 2000
     * data : [{"wx":0,"productSid":"s1","wallet":0,"bankCard":0,"type":"1","productName":"小南鸡","sid":"368820139b884c27a980503c0006cefc","money":13.8,"zfb":0,"pictureKey":"http://joplus-images.oss-cn-shanghai.aliyuncs.com/2017-07-31/2017073112170700803252.png?1502764370000","integration":2,"createdDatetime":1502764373000,"accountSid":"acc1458033650879u6Ex","updatedDatetime":1502764373000,"status":"0"}]
     * message : 查询成功
     */

    private String code;
    private String message;
    private List<DataBean> data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Parcelable {
        /**
         * wx : 0
         * productSid : s1
         * wallet : 0
         * bankCard : 0
         * type : 1
         * productName : 小南鸡
         * sid : 368820139b884c27a980503c0006cefc
         * money : 13.8
         * zfb : 0
         * pictureKey : http://joplus-images.oss-cn-shanghai.aliyuncs.com/2017-07-31/2017073112170700803252.png?1502764370000
         * integration : 2
         * createdDatetime : 1502764373000
         * accountSid : acc1458033650879u6Ex
         * updatedDatetime : 1502764373000
         * status : 0
         */

        private String wx;
        private String productSid;
        private String wallet;
        private String bankCard;
        private String type;
        private String productName;
        private String sid;
        private String money;
        private String zfb;
        private String pictureKey;
        private String integration;
        private long createdDatetime;
        private String accountSid;
        private long updatedDatetime;
        private String status;
        private String expirDate;
        private String integrationExchangeRecordSid;

        public String getIntegrationExchangeRecordSid() {
            return integrationExchangeRecordSid;
        }

        public void setIntegrationExchangeRecordSid(String integrationExchangeRecordSid) {
            this.integrationExchangeRecordSid = integrationExchangeRecordSid;
        }

        public String getExpirDate() {
            return expirDate;
        }

        public void setExpirDate(String expirDate) {
            this.expirDate = expirDate;
        }

        public String getWx() {
            return wx;
        }

        public void setWx(String wx) {
            this.wx = wx;
        }

        public String getProductSid() {
            return productSid;
        }

        public void setProductSid(String productSid) {
            this.productSid = productSid;
        }

        public String getWallet() {
            return wallet;
        }

        public void setWallet(String wallet) {
            this.wallet = wallet;
        }

        public String getBankCard() {
            return bankCard;
        }

        public void setBankCard(String bankCard) {
            this.bankCard = bankCard;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getProductName() {
            return productName;
        }

        public void setProductName(String productName) {
            this.productName = productName;
        }

        public String getSid() {
            return sid;
        }

        public void setSid(String sid) {
            this.sid = sid;
        }

        public String getMoney() {
            return money;
        }

        public void setMoney(String money) {
            this.money = money;
        }

        public String getZfb() {
            return zfb;
        }

        public void setZfb(String zfb) {
            this.zfb = zfb;
        }

        public String getPictureKey() {
            return pictureKey;
        }

        public void setPictureKey(String pictureKey) {
            this.pictureKey = pictureKey;
        }

        public String getIntegration() {
            return integration;
        }

        public void setIntegration(String integration) {
            this.integration = integration;
        }

        public long getCreatedDatetime() {
            return createdDatetime;
        }

        public void setCreatedDatetime(long createdDatetime) {
            this.createdDatetime = createdDatetime;
        }

        public String getAccountSid() {
            return accountSid;
        }

        public void setAccountSid(String accountSid) {
            this.accountSid = accountSid;
        }

        public long getUpdatedDatetime() {
            return updatedDatetime;
        }

        public void setUpdatedDatetime(long updatedDatetime) {
            this.updatedDatetime = updatedDatetime;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.wx);
            dest.writeString(this.productSid);
            dest.writeString(this.wallet);
            dest.writeString(this.bankCard);
            dest.writeString(this.type);
            dest.writeString(this.productName);
            dest.writeString(this.sid);
            dest.writeString(this.money);
            dest.writeString(this.zfb);
            dest.writeString(this.pictureKey);
            dest.writeString(this.integration);
            dest.writeLong(this.createdDatetime);
            dest.writeString(this.accountSid);
            dest.writeLong(this.updatedDatetime);
            dest.writeString(this.status);
            dest.writeString(this.expirDate);
            dest.writeString(this.integrationExchangeRecordSid);
        }

        public DataBean() {
        }

        protected DataBean(Parcel in) {
            this.wx = in.readString();
            this.productSid = in.readString();
            this.wallet = in.readString();
            this.bankCard = in.readString();
            this.type = in.readString();
            this.productName = in.readString();
            this.sid = in.readString();
            this.money = in.readString();
            this.zfb = in.readString();
            this.pictureKey = in.readString();
            this.integration = in.readString();
            this.createdDatetime = in.readLong();
            this.accountSid = in.readString();
            this.updatedDatetime = in.readLong();
            this.status = in.readString();
            this.expirDate = in.readString();
            this.integrationExchangeRecordSid = in.readString();
        }

        public static final Parcelable.Creator<DataBean> CREATOR = new Parcelable.Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }
}
